unit FormFrameDemo_U;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls, AcroMultiDD,AcroMultiScreen,acroMultiReplacer,
  FrameChild_U;

type
  TForm1 = class(TForm)
    AcroMultiStreamDD1: TAcroMultiStreamDD;
    Button1: TButton;
    Frame21: TFrame2;
    btn1: TButton;
    procedure FormCreate(Sender: TObject);
    procedure FormDestroy(Sender: TObject);
    procedure btn1Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form1: TForm1;

implementation

{$R *.dfm}

procedure TForm1.FormCreate(Sender: TObject);
begin
  ScreenStorage.DefaultReplaceOption.DDName:=AcroMultiStreamDD1.DDName;
  ScreenStorage.DefaultReplaceOption.SystemCulture:=true;
  ScreenStorage.DefaultReplaceOption.SeqNo:='0';
  ScreenStorage.Hook;
end;

procedure TForm1.FormDestroy(Sender: TObject);
begin
  ScreenStorage.UnHook;
end;

procedure TForm1.btn1Click(Sender: TObject);
var
  vFrame:TFrame2;
begin
  vFrame:=TFrame2.Create(Self);
  vFrame.Parent:=Self;
  ReplaceComLanguage(AcroMultiStreamDD1,vFrame,ScreenStorage.DefaultReplaceOption.LCID,'0');
end;

initialization
finalization
end.
